package com.example.demo99.Service;

import com.example.demo99.Entity.DTO.OrderDto;
import com.example.demo99.Entity.Order;
import com.example.demo99.Enums.OrderStatus;

import java.util.List;

public interface OrderService {
    void saveOrder(Order order);
    List<Order> getAllOrders();

    void createOrderAndGrantPoints(OrderDto dto); // 确保这行存在！

    void updateOrderStatus(Integer orderId, OrderStatus newStatus);
}
